#ifndef _RPC_UTILS_H_
#define _RPC_UTILS_H_

#include "rpc_fwd.h"

#pragma once

class RPCUtils
{
public:
    static uint64_t gen_uuid();

    static int32_t zip_compress( std::string & compress_data, const std::string & source_data );

    static int32_t zip_uncompress( std::string & source_data, int32_t before_compress_len,
        const std::string & compress_data );

    static uint64_t calc_crc( const char * data, size_t data_len );
	
	static int32_t round_up( int32_t size, int32_t up2size );
};

#endif //  _RPC_UTILS_H_

